package org.apache.dubbo.demo.provider;

import org.apache.dubbo.rpc.RpcContext;
import org.apache.dubbo.sample.ITest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestImpl implements ITest {

    private static final Logger logger = LoggerFactory.getLogger(PbGreeterImpl.class);

    @Override
    public String say(String name) {
        logger.error("TestImpl say {} , {}  port:  {}" , name, RpcContext.getContext().getLocalAddress() , RpcContext.getContext().getRemotePort());
        return "say  " + name;
    }
}